import ApiClient from '../base-api'

const fileApi = new ApiClient('/sys/file')

fileApi.download = (filename) => {
  return fileApi.request({
    url: `${fileApi.apiName}/download`,
    method: 'get',
    responseType: 'blob',
    params: { filename }
  })
}
export default fileApi
